package com.lvcoding.spring5aop.annotation;

import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.EnableAspectJAutoProxy;

/**
 * @author wuyanshen
 * @discription 配置类
 *
 * @EnableAspectJAutoProxy 开启基于注解的aop编程
 * proxyTargetClass = true 使用CGLIB动态代理
 *
 * @date 2021-03-09 下午2:29
 */
@Configuration
@ComponentScan(basePackages = "com.lvcoding.spring5aop")
@EnableAspectJAutoProxy(proxyTargetClass = true)
public class MyConfig {

}
